package com.iamback.dy.mapper;


import java.util.List;
import java.util.Map;

import com.iamback.dy.entity.User;
import com.iamback.dy.entity.UserRole;

public interface UserMapper {
   
   List<User> findUserPage(Map<String, Object> map);
   Integer findUserPageCount(Map<String, Object> map);
	
//	
//   List<User> getUserAssignPage(Map<String, Object> map);
//   Integer getUserAssignPageCount(Map<String, Object> map);
	
	
   List<User> getUserList(Map<String , Object> map);
	
   User getUserByName(String userName);
   
   User getUserById(Integer userId);
   
   int updateUserById(User user);
   
   int addUser(User user);
   
   int deleteUserById(Integer id);

   
   int saveUserRole(List<UserRole> list);
   int deleteUserRole(Map<String, Object> map);


}
